import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import lanhu_danweiguanli from '../views/lanhu_danweiguanli/index.vue'
import lanhu_shoujianxiang from '../views/lanhu_shoujianxiang/index.vue'
import lanhu_zhibanbiao from '../views/lanhu_zhibanbiao/index.vue'
import lanhu_shezhilunbotu from '../views/lanhu_shezhilunbotu/index.vue'
import lanhu_shezhizhongxintu from '../views/lanhu_shezhizhongxintu/index.vue'
import lanhu_tongxunluguanli from '../views/lanhu_tongxunluguanli/index.vue'
import lanhu_xinwenguanli from '../views/lanhu_xinwenguanli/index.vue'
import lanhu_xinwneleibieguanli from '../views/lanhu_xinwneleibieguanli/index.vue'
import lanhu_renyuanguanli from '../views/lanhu_renyuanguanli/index.vue'
import lanhu_chaxunlianjie from '../views/lanhu_chaxunlianjie/index.vue'
import lanhu_pingtailianjie from '../views/lanhu_pingtailianjie/index.vue'
import lanhu_zhuantizhuanlan from '../views/lanhu_zhuantizhuanlan/index.vue'
import lanhu_jingyuancaifeng from '../views/lanhu_jingyuancaifeng/index.vue'
import lanhu_xitongshezhi from '../views/lanhu_xitongshezhi/index.vue'
import lanhu_houtaidenglu from '../views/lanhu_houtaidenglu/index.vue'


Vue.use(VueRouter)

const routes = [
    { path: '/', redirect: '/lanhu_houtaidenglu' },
    { path: '/lanhu_houtaidenglu', component: lanhu_houtaidenglu },
    {
        path: '/home', component: Home,
    children: [
            { path: '/danwei',component: lanhu_danweiguanli},
            {path:'/sjx',component:lanhu_shoujianxiang},
            {path:'/users',component:lanhu_zhibanbiao},
            {path:'/roles',component:lanhu_shezhilunbotu},
            {path:'/rights',component:lanhu_shezhizhongxintu},
            {path:'/adds',component:lanhu_tongxunluguanli},
            {path:'/xinwen',component:lanhu_xinwenguanli},
            {path:'/wer',component:lanhu_xinwneleibieguanli},
            {path:'/renyuan',component:lanhu_renyuanguanli},
            {path:'/chaxun',component:lanhu_chaxunlianjie},
            {path:'/pingtai',component:lanhu_pingtailianjie},
            {path:'/zhuanti',component:lanhu_zhuantizhuanlan},
            {path:'/jingyuan',component:lanhu_jingyuancaifeng},
            {path:'/xtsz',component:lanhu_xitongshezhi},
        ]}
]

const router = new VueRouter({
        routes
    })
export default router
